package com.jctrip.hotel.management.model.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value = "修改渠道信息接口-请求体")
@Data
public class UpdateRouteInfoParam {
    @ApiModelProperty(value = "主键id", required = true)
    private String id;

    @ApiModelProperty(value = "渠道编号", required = true)
    private String routeCode;

    @ApiModelProperty(value = "渠道名称", required = true)
    private String userName;

    @ApiModelProperty(value = "渠道账户id", required = true)
    private String appId;

    @ApiModelProperty(value = "渠道账户秘钥", required = true)
    private String secretKey;

    @ApiModelProperty(value = "联系电话", required = true)
    private String tel;

    @ApiModelProperty(value = "邮箱", required = false)
    private String email;

    @ApiModelProperty(value = "渠道类型(0=测试；1=自有；2=外部)", required = true)
    private Integer sellerType;

    @ApiModelProperty(value = "渠道状态(0=关闭；1=正常)", required = true)
    private Integer status;

    @ApiModelProperty(value = "价格模式(0=卖价模式；1=底价模式)", required = true)
    private Integer priceType;

    @ApiModelProperty(value = "自动处理订单开关(0=关闭；1=正常)", required = true)
    private Integer autoOrderSwitch;

    @ApiModelProperty(value = "自动处理订单价格区间最低值", required = false)
    private BigDecimal autoOrderPriceMin;

    @ApiModelProperty(value = "自动处理订单价格区间最高值", required = false)
    private BigDecimal autoOrderPriceMax;

    @ApiModelProperty(value = "订单默认联系方式", required = false)
    private String defaultOrderContact;

    @ApiModelProperty(value = "第三方应用id", required = false)
    private String thirdAppId;

    @ApiModelProperty(value = "第三方应用秘钥", required = false)
    private String thirdSecret;

    @ApiModelProperty(value = "账户额度", required = true)
    private BigDecimal accountCredit;

    @ApiModelProperty(value = "账户额度预警", required = true)
    private BigDecimal minimum;

    @ApiModelProperty(value = "钉钉机器人", required = false)
    private String dingTalkRobot;

    @ApiModelProperty(value = "拓展信息(JSON格式)", required = false)
    private String extra;

    @ApiModelProperty(value = "session失效时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date loseTime;
}
